﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Articles.aspx.cs" Inherits="PlugNT.Cms.Web.Home.Articles" %>

<%@ Register Src="Control/Head.ascx" TagName="Head" TagPrefix="uc1" %>
<%@ Register Src="Control/Foot.ascx" TagName="Foot" TagPrefix="uc2" %>
<%@ Register Src="Control/LeftContent.ascx" TagName="LeftContent" TagPrefix="uc5" %>
<%@ Register Src="Control/Style.ascx" TagName="Style" TagPrefix="uc4" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
    <title>
       <%=enterprise.Name%>
        - 公司动态</title>
    <uc4:Style ID="Style1" runat="server" /> 
</head>
<body>
    <uc1:Head ID="Head3" runat="server" />
    <div class="base">
        <div class="container">
            <ul class="navigation mb10">
                <li class="first"><strong>您现在的位置：</strong><%=enterprise.Name%>></li>
                <li>公司动态</li>
            </ul>
            <div class="rows clearfix">
                <uc5:LeftContent id="LeftContent" runat="server" />
                <div class="main cols">
                    <div class="mod mb10">
                        <div class="hd">
                            <h3>公司动态</h3>
                        </div>
                        <div class="bd">
                            <ul class="ul-news mb10">
                                <%     int page = 1;
                                       if (Request.QueryString["page"] != null)
                                       {
                                           page = Convert.ToInt32(Request.QueryString["page"]);
                                       }

                                       System.Collections.Generic.IList<FJASPX.Domain.Article> list = getArticles();
                                       for (int i = 0; i <= list.Count - 1; i++)
                                       {
                                           Response.Write("<li><em>" + Convert.ToDateTime(list[i].TimeStamp).ToShortDateString() + "</em><a href=\'/Home/Article.aspx?User=" + user.Id + "&Id=" + list[i].Id + "' target=\"_blank\" style=\"color: ;\">" + list[i].Title + "</a></li>");
                                           if ((i + 1) % 6 == 0)
                                           {
                                               Response.Write("</ul><ul class=\"ul-news\">");
                                           }
                                       }  
                                %>
                            </ul>
                            <ul class="ul-news">
                            </ul>
                            <div class="pager">
                                <%  
                                    Response.Write(PlugNT.Cms.Page.DataHelper.GetPagination((int)TotalCount, 24, page, "Articles.aspx", "User=" + Request.QueryString["User"] + "&page", "", false, false));%>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <uc2:Foot ID="Foot2" runat="server" />
</body>
</html>
